package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: lijie
 * Email:lijiewj51137@touna.cn
 * Date: 2017/7/31
 * Time: 15:00
 */
@Component
//@ConfigurationProperties(prefix = "fahai")
//@PropertySource("classpath:properties/fahai.properties")
@DisconfFile(targetDirPath = "disconf", filename = "fahai.properties")
public class FaHaiProperties {
    private String server;
    private String personServer;
    private String authCode;

    @DisconfFileItem(name = "fahai.server", associateField = "server")
    public String getServer() {
        return server;
    }

    public void setServer(String server) {
        this.server = server;
    }

    @DisconfFileItem(name = "fahai.personServer", associateField = "personServer")
    public String getPersonServer() {
        return personServer;
    }

    public void setPersonServer(String personServer) {
        this.personServer = personServer;
    }

    @DisconfFileItem(name = "fahai.authCode", associateField = "authCode")
    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

}
